<%@ page import="MySql.User" %>
<%@ page import="MySql.UserManager" %><%--
  Created by IntelliJ IDEA.
  User: 浅汐
  Date: 2021/1/15
  Time: 21:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <form action="addusers.go">
        <%!
            User user=new User();
        %>
        <%
            //            out.println(good.toString());
            String s=request.getParameter("id");
            if(s!=null){
                user= UserManager.getRowById(s);
//                    out.print(s+"877");
            }
    //            out.println(good.getId());
        %>
        <span style="width:50px;margin-bottom:10px;display: inline-block">username:</span><input type="text" name="username" value="<%=user.getUsername()==null?"":user.getUsername()%>">
        </br>
        <span style="width:50px;margin-bottom:10px;display: inline-block">passwd:</span><input type="text" name="passwd" value="<%=user.getPasswd()==null?"":user.getPasswd()%>">
        </br>
        <span style="width:50px;margin-bottom:10px;display: inline-block">email:</span><input type="text" name="email" value="<%=user.getEmail()==null?"":user.getEmail()%>">
        </br>
        <span style="width:50px;margin-bottom:10px;display: inline-block">truename:</span><input type="text" name="truename" value="<%=user.getTrueName()==null?"":user.getTrueName()%>">
        </br>
        <span style="width:50px;margin-bottom:10px;display: inline-block">age:</span><input type="text" name="age" value="<%=user.getAge()<=0?"":user.getAge()%>">
        </br>
        <input type="submit" name="add" value="修改">
    </form>
</body>
</html>
